package com.example.demo.mongo.dao;

import com.example.demo.mongo.User;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * @author wujunyu
 * @date 2020/8/28 10:35
 */
@Repository
public interface UserRepoistory extends ReactiveMongoRepository<User,String> {
    
    Mono<User> findByUserName(String userName);
    
    @Override
    Flux<User> findAll();
}
